package com.million.artservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.million.artservice.entity.ArticleComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.million.artservice.entity.params.CommentParams;
import com.million.artservice.entity.vo.CommentVo;
import com.million.artservice.entity.vo.QueryCommentPageVo;
import com.million.artservice.entity.vo.QueryCommentVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 文章评论 服务类
 * </p>
 *
 * @author 十麓
 * @since 2022-04-17
 */
public interface ArticleCommentService extends IService<ArticleComment> {

    //根据文章ID显示文章评论列表
    List<CommentVo> queryCommentVoList (String articleId);


    //添加评论
    String addComment (CommentParams commentParams, HttpServletRequest request);

    //分页条件查询文章评论列表  根据文章id  或者 开始时间到结束时间
    Page<QueryCommentPageVo> queryCommentVoPage (Page<QueryCommentPageVo> commentPageVoPage, QueryCommentVo queryCommentVo);

    //根据文章评论id 删除评论信息
    void deleteCommentInfo (String commentId);
}
